hidpi: Rescan monitors when screen scale factor changes
authorAlexander Larsson <alexl@redhat.com>
Mon, 10 Feb 2020 14:19:32 +0000 (15:19 +0100)
committerAlexander Larsson <alexl@redhat.com>
Mon, 10 Feb 2020 14:34:32 +0000 (15:34 +0100)
commit23211bcae810f8d246d37924e689afdfd1a88855
treeda362da8637cac65f14dd8a27f3b13b2a078cb5e
parente123fff545ab04470848d206ad438cdf1c221023
hidpi: Rescan monitors when screen scale factor changes

All the code in e.g. init_randr15() divides the physical resolutions with
the screen scale, however if we get the screen scale from xsettings
rather than e.g. GDK_SCALE the initial setup is using the wrong value.

So, whenever the screen scale size is changed we need to trigger
a re-read of the randr data
gdk/x11/gdkscreen-x11.c